/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.system.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(value = "通知公告", description = "通知公告实体类")
public class Announcement extends BaseEntity {

    @ApiModelProperty(value = "公告标题", name = "title", required = true)
    private String title;
    @ApiModelProperty(value = "公告内容", name = "content", required = true)
    private String content;
    @ApiModelProperty(value = "播报开始时间", name = "beginTime", required = true)
    @JsonFormat(pattern="yyyy-MM-dd",timezone ="GMT+8" )
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date beginTime;
    @ApiModelProperty(value = "播报结束时间", name = "endTime", required = true)
    @JsonFormat(pattern="yyyy-MM-dd",timezone ="GMT+8" )
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endTime;
    @ApiModelProperty(value = "消息排序", name = "annouIndex", required = true)
    private Integer annouIndex;
    @ApiModelProperty(value = "链家地址", name = "url", required = false)
    private String url;
    @ApiModelProperty(value = "是否删除,0否，1是", name = "url", required = true)
    private Integer isRemove;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getAnnouIndex() {
        return annouIndex;
    }

    public void setAnnouIndex(Integer annouIndex) {
        this.annouIndex = annouIndex;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getIsRemove() {
        return isRemove;
    }

    public void setIsRemove(Integer isRemove) {
        this.isRemove = isRemove;
    }

    @Override
    public String toString() {
        return "Announcement{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                ", annouIndex=" + annouIndex +
                ", url='" + url + '\'' +
                ", isRemove=" + isRemove +
                '}';
    }
}
